/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Otolaryngology Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20179 (C-0-T19465-S20096-S20179-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getOtolaryngologyProviderCodes()
 * @model extendedMetaData="name='OtolaryngologyProviderCodes'"
 * @generated
 */
public enum OtolaryngologyProviderCodes implements Enumerator {
	/**
	 * The '<em><b>207Y00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207Y00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_207Y00000X(0, "_207Y00000X", "207Y00000X"),

	/**
	 * The '<em><b>207YS0123X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207YS0123X_VALUE
	 * @generated
	 * @ordered
	 */
	_207YS0123X(1, "_207YS0123X", "207YS0123X"),

	/**
	 * The '<em><b>207YX0602X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207YX0602X_VALUE
	 * @generated
	 * @ordered
	 */
	_207YX0602X(2, "_207YX0602X", "207YX0602X"),

	/**
	 * The '<em><b>207YX0905X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207YX0905X_VALUE
	 * @generated
	 * @ordered
	 */
	_207YX0905X(3, "_207YX0905X", "207YX0905X"),

	/**
	 * The '<em><b>207YX0901X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207YX0901X_VALUE
	 * @generated
	 * @ordered
	 */
	_207YX0901X(4, "_207YX0901X", "207YX0901X"),

	/**
	 * The '<em><b>207YP0228X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207YP0228X_VALUE
	 * @generated
	 * @ordered
	 */
	_207YP0228X(5, "_207YP0228X", "207YP0228X"),

	/**
	 * The '<em><b>207YX0007X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207YX0007X_VALUE
	 * @generated
	 * @ordered
	 */
	_207YX0007X(6, "_207YX0007X", "207YX0007X");

	/**
	 * The '<em><b>207Y00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207Y00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207Y00000X
	 * @model literal="207Y00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _207Y00000X_VALUE = 0;

	/**
	 * The '<em><b>207YS0123X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207YS0123X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207YS0123X
	 * @model literal="207YS0123X"
	 * @generated
	 * @ordered
	 */
	public static final int _207YS0123X_VALUE = 1;

	/**
	 * The '<em><b>207YX0602X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207YX0602X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207YX0602X
	 * @model literal="207YX0602X"
	 * @generated
	 * @ordered
	 */
	public static final int _207YX0602X_VALUE = 2;

	/**
	 * The '<em><b>207YX0905X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207YX0905X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207YX0905X
	 * @model literal="207YX0905X"
	 * @generated
	 * @ordered
	 */
	public static final int _207YX0905X_VALUE = 3;

	/**
	 * The '<em><b>207YX0901X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207YX0901X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207YX0901X
	 * @model literal="207YX0901X"
	 * @generated
	 * @ordered
	 */
	public static final int _207YX0901X_VALUE = 4;

	/**
	 * The '<em><b>207YP0228X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207YP0228X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207YP0228X
	 * @model literal="207YP0228X"
	 * @generated
	 * @ordered
	 */
	public static final int _207YP0228X_VALUE = 5;

	/**
	 * The '<em><b>207YX0007X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207YX0007X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207YX0007X
	 * @model literal="207YX0007X"
	 * @generated
	 * @ordered
	 */
	public static final int _207YX0007X_VALUE = 6;

	/**
	 * An array of all the '<em><b>Otolaryngology Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final OtolaryngologyProviderCodes[] VALUES_ARRAY =
		new OtolaryngologyProviderCodes[] {
			_207Y00000X,
			_207YS0123X,
			_207YX0602X,
			_207YX0905X,
			_207YX0901X,
			_207YP0228X,
			_207YX0007X,
		};

	/**
	 * A public read-only list of all the '<em><b>Otolaryngology Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<OtolaryngologyProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Otolaryngology Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OtolaryngologyProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OtolaryngologyProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Otolaryngology Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OtolaryngologyProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OtolaryngologyProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Otolaryngology Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OtolaryngologyProviderCodes get(int value) {
		switch (value) {
			case _207Y00000X_VALUE: return _207Y00000X;
			case _207YS0123X_VALUE: return _207YS0123X;
			case _207YX0602X_VALUE: return _207YX0602X;
			case _207YX0905X_VALUE: return _207YX0905X;
			case _207YX0901X_VALUE: return _207YX0901X;
			case _207YP0228X_VALUE: return _207YP0228X;
			case _207YX0007X_VALUE: return _207YX0007X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private OtolaryngologyProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //OtolaryngologyProviderCodes
